package com.cvte.vdtlibrary.bluetooth;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wuguitong on 2018/11/20.
 */
public enum EnumBtDeviceStatus implements Parcelable {
    DEV_NOT_PAIR,
    DEV_PAIR,
    DEV_CONNECTING,
    DEV_CONNECTED,
    DEV_DIS_CONNECTING;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ordinal());
    }
    public static final Creator<EnumBtDeviceStatus> CREATOR = new Creator<EnumBtDeviceStatus>() {
        @Override
        public EnumBtDeviceStatus createFromParcel(Parcel source) {
            return EnumBtDeviceStatus.values()[source.readInt()];
        }

        @Override
        public EnumBtDeviceStatus[] newArray(int size) {
            return new EnumBtDeviceStatus[size];
        }
    };
}
